import { RootDestroyer } from 'store/RootStore';

const useOnUnloadWindow = (): void => {
    window.addEventListener('unload', () => RootDestroyer());
};

export default useOnUnloadWindow;
